package com.tjian.fafa.user.module.home.tool;

import com.tjian.fafa.user.module.home.bean.NewsClassify;
import com.tjian.fafa.user.module.home.bean.NewsEntity;

import java.util.ArrayList;

public class Constants_home
{
    public static ArrayList<NewsClassify> getData()
    {
        ArrayList<NewsClassify> newsClassify = new ArrayList<NewsClassify>();
        NewsClassify classify = new NewsClassify();
        classify.setId(0);
        classify.setTitle("发发 即时配送");
        newsClassify.add(classify);

        /*classify = new NewsClassify();
        classify.setId(1);
        classify.setTitle("发发 即时配送");
        newsClassify.add(classify);*/

        /*classify = new NewsClassify();
        classify.setId(2);
        classify.setTitle("人力快递");
        newsClassify.add(classify);
        classify = new NewsClassify();
        classify.setId(3);
        classify.setTitle("大货车");
        newsClassify.add(classify);*/

        return newsClassify;
    }

    public static ArrayList<NewsEntity> getNewsList()
    {
        ArrayList<NewsEntity> newsList = new ArrayList<NewsEntity>();
        for (int i = 0; i < 1; i++)
        {
            NewsEntity news = new NewsEntity();
            news.setId(i);
            news.setNewsId(i);
            news.setCollectStatus(false);
            news.setInterestedStatus(true);
            news.setLikeStatus(true);
            news.setReadStatus(false);
            news.setNewsCategory("推荐");
            news.setNewsCategoryId(1);
            news.setTitle("查找周边快递员，最快的速度帮你送达快递");
            news.setPublishTime(Long.valueOf(i));
            news.setReadStatus(false);
            news.setMark(i);

            newsList.add(news);
        }
        return newsList;
    }

    /**
     * mark=0 ：快递小车
     */
    public final static int mark_recom = 0;
    /**
     * mark=1 ：热门
     */
    public final static int mark_hot = 1;
    /**
     * mark=2 ：首发
     */
    public final static int mark_frist = 2;
    /**
     * mark=3 ：独家
     */
    public final static int mark_exclusive = 3;
    /**
     * mark=4 ：收藏
     */
    public final static int mark_favor = 4;
}

